package org.rcy.ruicingmarket.user;

import org.rcy.ruicingmarket.user.User;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.rcy.framework.data.dao.BaseDao;
import org.rcy.ruicingmarket.user.UserQueryCondition;

import java.util.List;


/**
*
* @author RuicyWu
*@Date 2021-12-22 14:34:38
*/
public interface UserDao extends BaseDao<User>
{
    User findByMobile(@Param("mobile") String mobile);
    User findByEmail(@Param("email") String email);
    List<User> queryPage(UserQueryCondition condition);
    int queryPageCount(UserQueryCondition  condition);
    void freezeUser(@Param("id")Long id);
    int updatePassword(@Param("id")Long id,@Param("newpass")String newpass);
}
